package dsk.demo.miaosha.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import dsk.demo.miaosha.demo.pojo.User;
import dsk.demo.miaosha.demo.vo.LoginVo;
import dsk.demo.miaosha.demo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2022-07-03
 */
public interface IUserService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 根据ticket 获取用户
     * @param suerTicket
     * @return
     */
    User getUserByCookie(String suerTicket, HttpServletRequest request, HttpServletResponse response);
}
